<!-- php:$title= $cate_rs ? $cate_rs.title : $page_rs.title -->
<!-- include tpl=head title=$title menutitle=$page_rs.title -->
<div class="main">
	<ul class="am-list">
		<!-- loop from=$rslist key=$key value=$value -->
		<li><a href="{$value.url}" class="am-text-truncate">{$value.title}</a></li>
		<!-- /loop -->
	</ul>
	<!-- if $session.user_id -->
	<a class="am-btn am-btn-primary" href="{url ctrl=post id=$page_rs.identifier cateid=$cate_rs.id/}">发布新主题</a>
	<!-- else -->
	<a class="am-btn am-btn-danger"  href="{url ctrl=login _back=$cate_rs.url/}" class="red">仅限会员才有发布权限</a>
	<!-- /if -->
	<!-- include tpl=block/pagelist -->
</div>

<!-- include tpl=foot -->